#include "Textures.h"
#include "frameworks/RGBpixmap.h"

#include "skyboxes/SkyboxTextures.h"
#include "boards/BoardTextures.h"
#include "pieces/PiecesTextures.h"

RGBpixmap pixmap;

void loadTexture(char *tex_path, int tex_id) {
	pixmap.readBMPFile(tex_path);
	pixmap.setTexture(tex_id);
}

void loadTextures() {
	printf("Loading textures...\n");
	loadSkyboxTextures();
	loadMainBoardTextures();
	loadBenchBoardsTextures();
	loadPiecesTextures();
	printf("Textures Loaded.\n");
}